const addressService = require('../../service/addressService');
const addressRouter = {
  prefix: '/address',
  routers: [
    {
      method: 'post',
      handler: addressService.create
    },
    {
      method: 'put',
      handler: addressService.update
    },
    {
      method: 'get',
      handler: addressService.findByUserId
    }
  ]
}

module.exports = addressRouter;